package com.abigdreamer.im.server.module.msgProcess;

import com.abigdreamer.im.message.BaseMessage;
import com.abigdreamer.im.server.module.ServerCache;
import com.abigdreamer.im.server.module.UserConnect;

/**
 */
public class ShockFrameMessageProcess implements IMessageProcess {

	public void processMessage(BaseMessage message) {
		String destQQ = message.getDestQQ();
		ServerCache cache = ServerCache.getInstance();
		UserConnect userConnect = cache.getUserConnectMap().get(destQQ);
		if (userConnect != null) {
			userConnect.sendTextMessage(message);
		} else {
		}
	}

}
